package com.myproject.music.domain;


import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

public class Song{
    @ApiModelProperty("歌名id")
    private Long id;

    @ApiModelProperty("歌名")
    @NotBlank(message = "歌名不能为空")
    @Size(min = 1, max = 20, message = "歌手名字必须在1到20个字符之间")
    private String songName;


    @ApiModelProperty
    private String description;

    @ApiModelProperty
    private String creator;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSongName() {
        return songName;
    }

    public void setSongName(String songName) {
        this.songName = songName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
}